	$(document).ready(function()
	{
		//**************************************************************************************		
		//var pageurl = window.location + "test";
		var img_load = $("#loading").val();		
		var url_load = $("#loading_url").val();
		var div_show = $("#loading_content").val();
		
		document.getElementById(""+div_show+"").innerHTML = "<img src='" + img_load + "' alt=''/>";
		if (window.XMLHttpRequest)
		  {// code for IE7+, Firefox, Chrome, Opera, Safari
		  	xmlhttp=new XMLHttpRequest();
		  }
		else
		  {// code for IE6, IE5
		  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
		  }
		xmlhttp.onreadystatechange=function()
		  {
		  	if (xmlhttp.readyState==4 && xmlhttp.status==200)
		  	{			  		
		    	document.getElementById(""+div_show+"").innerHTML = xmlhttp.responseText;
		    }
		  }			 
		xmlhttp.open("GET",url_load,true);
		xmlhttp.send();
		//return false;
		//**************************************************************************************
		$(".testajax").click(function()
		{			
			var url = $(this).attr('rel');			
			document.getElementById(""+div_show+"").innerHTML = "<img src='" + img_load + "' alt=''/>";
			if (window.XMLHttpRequest)
			  {// code for IE7+, Firefox, Chrome, Opera, Safari
			  	xmlhttp=new XMLHttpRequest();
			  }
			else
			  {// code for IE6, IE5
			  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
			  }
			xmlhttp.onreadystatechange=function()
			  {
			  	if (xmlhttp.readyState==4 && xmlhttp.status==200)
			  	{			  		
			    	document.getElementById(""+div_show+"").innerHTML = xmlhttp.responseText;
			    }
			  }			 
			xmlhttp.open("GET",url,true);
			xmlhttp.send();
			return false;
		});	
		//**************************************************************************************
		$(".testphantrang").click(function(){
			var url = $(this).attr('rel');
			alert(url);
			document.getElementById(""+div_show+"").innerHTML = "<img src='" + img_load + "' alt=''/>";
			if (window.XMLHttpRequest)
			  {// code for IE7+, Firefox, Chrome, Opera, Safari
			  	xmlhttp=new XMLHttpRequest();
			  }
			else
			  {// code for IE6, IE5
			  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
			  }
			xmlhttp.onreadystatechange=function()
			  {
			  	if (xmlhttp.readyState==4 && xmlhttp.status==200)
			  	{			  		
			    	document.getElementById(""+div_show+"").innerHTML = xmlhttp.responseText;
			    }
			  }			 
			xmlhttp.open("GET",title,true);
			xmlhttp.send();
			return false;
		});
		
		
		//**************************************************************************************
	});